Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore C

Total Complexity 120
Dependencies 12
Dependents 9
Total lines 1,060
Lines of code 588
Logical lines of code 266
Comment lines 309
Methods 39
Properties 3

Methods 39

Method Rating Maintainability Complexity Lines of code
create_data_for_product_cpt_core()
D
26
29 156
add_product_attributes_lookup_table_settings()
A
44 6 50
run_update_callback()
S
53 7 25
get_update_action()
S
54 7 21
create_data_for_variable_product()
S
50 5 30
create_data_for()
S
53 4 23
on_product_changed()
S
61 4 12
create_data_for_product()
S
61 4 12
maybe_schedule_update()
S
53 3 24
insert_lookup_table_data()
S
56 3 22
create_data_for_product_cpt()
S
55 3 19
create_data_for_variation()
S
56 3 17
get_attribute_taxonomies()
S
60 3 14
insert_lookup_table_data_for_variation()
S
60 3 13
on_product_deleted()
S
63 3 11
create_data_for_simple_product()
S
62 3 11
get_term_ids_by_slug_cache()
S
59 2 15
update_stock_status_for()
S
63 2 11
__construct()
S
66 2 8
can_use_optimized_db_access()
S
68 2 7
get_variation_definition_term_id()
S
65 2 9
add_advanced_section_to_product_settings()
S
70 2 6
on_product_created_or_updated_via_rest_api()
S
73 2 5
set_regeneration_aborted_flag()
S
80 1 3
optimized_data_access_is_enabled()
S
79 1 3
check_lookup_table_exists()
S
72 1 5
lookup_table_has_data()
S
74 1 4
regeneration_was_aborted()
S
79 1 3
unset_regeneration_aborted_flag()
S
81 1 3
delete_data_for()
S
66 1 10
unset_regeneration_in_progress_flag()
S
81 1 3
regeneration_is_in_progress()
S
78 1 3
get_lookup_table_name()
S
82 1 3
get_last_create_operation_failed()
S
82 1 3
is_variation()
S
79 1 3
is_variable_product()
S
79 1 3
get_variations_of()
S
67 1 9
init_hooks()
S
68 1 6
set_regeneration_in_progress_flag()
S
80 1 3